package com.felton.springboot.shrio.dao;

import com.felton.springboot.shrio.entity.Role;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    /**
     * 通过用户名获取角色
     */
    List<Role> getRoleListByUserName(String userName);
}